package com.hospital.hospitalsystem.modules.medicine.dao.mapper;

import com.hospital.hospitalsystem.modules.medicine.dao.entity.HospitalMedicalEntity;
import com.hospital.hospitalsystem.modules.medicine.dto.CheckStorageReq;
import com.hospital.hospitalsystem.modules.medicine.dto.CheckStorageRsp;
import com.hospital.hospitalsystem.modules.user.dto.BuyOrderReq;
import com.hospital.hospitalsystem.modules.user.dto.MedicalListReq;
import com.hospital.hospitalsystem.modules.user.dto.MedicalRsp;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface HospitalMedicalMapper extends Mapper<HospitalMedicalEntity> {
    List<MedicalRsp> selectByList(@Param("param") MedicalListReq req);

    List<CheckStorageRsp> checkStorage(@Param("param") CheckStorageReq req);

    List<HospitalMedicalEntity> buyMedical(@Param("param") BuyOrderReq req);
}
